<template>
  <div class="main-box">
			<p class="user-id">ID：12345</p>
			<div class="energy_box energy_total">
				<p>生产能量</p>
				<span>12345g</span>
			</div>
			<div class="energy_box energy_today">
				<p>日产量</p>
				<span>50g</span>
			</div>
			<div class="watering">
			</div>
			<div class="collection">
			</div>
			
			<div class="current_energy">+1g</div>
			<div class="bnt-pre"></div>
			<div class="bnt-next"></div>
			<img src="https://cyxshop.oss-cn-beijing.aliyuncs.com/index-13.png" class="tree"/>
			<div class="page">1 / 10</div>
			
			<div class="nav-box">
				<a class="gonglue">攻略</a>
				<a class="daoju">道具</a>
				<a class="tuiguang">推广</a>
				<a class="qianbao">钱包</a>
				<a class="ucenter">个人中心</a>
			</div>
			
			<div class="extension">
				
			</div>
			
  </div>
</template>

<script>

export default {
  data () {
    return {
      motto: 'Hello miniprograme',
      userInfo: {
        nickName: 'mpvue',
        avatarUrl: 'http://mpvue.com/assets/logo.png'
      }
    }
  },

  methods: {
    
  },

  created () {
    // let app = getApp()
  }
}
</script>

<style scoped>
	.main-box{
		width: 375px;
		height: 667px;
		background: url(https://cyxshop.oss-cn-beijing.aliyuncs.com/index-1.png) no-repeat;
		background-size:375px 667px;
		position: relative;
	}
	
	.user-id{
		width:100px;
		height:30px;
		background: #1ca04d;
		color: #ffffff;
		border-radius: 30px;
		font-size: 15px;
		line-height: 30px;
		text-align: center;
		position: absolute;
		top: 50px;
		left: 50%;
		margin-left: -50px;
	}
	
	.energy_box{
		height: 44px;
		width: 81px;
		padding-left: 54px;
		background:url(https://cyxshop.oss-cn-beijing.aliyuncs.com/index-11.png) 4px center no-repeat #d3edfe;
		background-size:38px ;
		border-top-left-radius: 44px;
		border-bottom-left-radius: 44px;
		position: absolute;
	}
	
	.energy_box p{
		padding-top: 8px;
		font-size: 13px;
		color: #267a4f;
		line-height: 1;
		font-weight: bold;
	}
	
	.energy_box span{
		display: block;
		margin-top: 5px;
		font-size: 12px;
		color: #267a4f;
		line-height: 1;
	}
	
	.energy_total{
		top: 70px;
		right: 0;
	}
	
	.energy_today{
		top: 124px;
		right: 0;
	}
	
	.watering{
		position: absolute;
		right: 20px;
		top: 172px;
		width: 56px;
		height: 54px;
		background: url(https://cyxshop.oss-cn-beijing.aliyuncs.com/index-5.png) no-repeat;
		background-size:56px 54px;
	}
	
	.collection{
		position: absolute;
		right: 20px;
		top: 232px;
		width: 54px;
		height: 54px;
		background: url(https://cyxshop.oss-cn-beijing.aliyuncs.com/index-10.png) no-repeat;
		background-size:54px;
	}
	.current_energy{
		width: 50px;
		height: 50px;
		position: absolute;
		background: url(https://cyxshop.oss-cn-beijing.aliyuncs.com/index-12.png) no-repeat;
		background-size:50px;
		top: 130px;
		left: 50%;
		margin-left: -25px;
		color: #1ca04d;
		font-size: 13px;
		font-weight: bold;
		text-align: center;
		line-height: 1;
		padding-top: 6px;
	}
	.tree{
		display: block;
		position: absolute;
		width: 265px;
		height: 319px;
		top: 188px;
		left: 50%;
		margin-left: -133px;
	}
	
	.nav-box{
		position: absolute;
		top: 510px;
		height: 54px;
		width: 335px;
		padding: 0 20px;
	}
	.nav-box a{
		display: block;
		width: 20%;
		height: 54px;
		float: left;
		font-size: 0;
	}
	
	.nav-box a.gonglue{
		background: url(https://cyxshop.oss-cn-beijing.aliyuncs.com/index-6.png) center no-repeat;
		background-size:56px 54px;
	}
	
		.nav-box a.daoju{
		background: url(https://cyxshop.oss-cn-beijing.aliyuncs.com/index-2.png) center no-repeat;
		background-size:56px 54px;
	}
	
		.nav-box a.tuiguang{
		background: url(https://cyxshop.oss-cn-beijing.aliyuncs.com/index-4.png) center no-repeat;
		background-size:56px 54px;
	}
	
		.nav-box a.qianbao{
		background: url(https://cyxshop.oss-cn-beijing.aliyuncs.com/index3.png) center no-repeat;
		background-size:56px 54px;
	}
	
		.nav-box a.ucenter{
		background: url(https://cyxshop.oss-cn-beijing.aliyuncs.com/index-7.png) center no-repeat;
		background-size:56px 54px;
	}
	
	.bnt-pre{
		width: 30px;
		height: 30px;
		background: url(https://cyxshop.oss-cn-beijing.aliyuncs.com/index-8.png) no-repeat;
		background-size:30px ;
		position: absolute;
		top: 336px;
		left: 15px;
		border-radius: 100%;
		box-shadow: #9bd4e5 0px 0px 10px; 
	}
	
	.bnt-next{
		width: 30px;
		height: 30px;
		background: url(https://cyxshop.oss-cn-beijing.aliyuncs.com/index-9.png) no-repeat;
		background-size:30px ;
		position: absolute;
		top: 336px;
		right: 15px;
		border-radius: 100%;
		box-shadow: #9bd4e5 0px 0px 10px; 
	}
	
	.page{
		width: 100px;
		height: 20px;
		background: #1da14e;
		color: #FFFFFF;
		border-radius: 20px;
		font-size: 12px;
	text-align: center;
	line-height: 20px;
	position: absolute;
	top: 485px;
	left: 50%;
	margin-left: -50px;
	}
</style>
